//*****************************************************************************
//
// ABEC3 Lumped Element File
// Project: Enclosure Vented
//
//*****************************************************************************

// Lumped Element Version of example "SP38".
// In this case we specify diaphragm dimension in the LEScript.
// For the radiation impedance a simplified version is used,
// which is the text-book formula for a disc in an infinite baffle.

// Thiele-Small parameter of electro-dynamic driver

Def_Driver 'SP38'
  dD=340mm           // Diameter of cone
  Re=5.82ohm
  Le=2.9mH  fre=1.1kHz  ExpoRe=0.824  ExpoLe=0.756
  Mms=70g  // air-load subtracted
  Cms=81e-6m/N  Rms=1Ns/m  Bl=21N/A

// Driving value of LE network (here using formula to convert dB to voltage)

Def_Driving "Driving"
  DrvValue=1V
  IsRms

// Lumped element network
  
System 'S1'
  // Generator resistance of wires etc
  Resistor 'Rg'
    Node=1=2
    R=0.1ohm
  // Speaker electro-acoustic
  Driver  'Drv1'
    Def='SP38'
    Node=2=0=10=20
  RadImp 'Front'           // Simple radiation impedance of diaphragm
    dD=340mm
    Node=10
  // Enclosure
  Enclosure 'Encl'
    Node=20
    Vb=116.9L
    Lb=424mm  eta=0.1
  Duct 'Vent'
    Node=20=30
    Len=160mm
    WD=20cm  HD=10cm
  RadImp 'Vent'            // Simple radiation impedance of vent
    Node=30
    Def='Vent'             // Take cross-section from Duct
